package com.company.card_service.serviceImpl;

import com.company.card_service.model.AddPhone;
import com.company.card_service.mapper.AddPhoneMapper;
import com.company.card_service.service.AddPhoneService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:06
 */
@Service
public class AddPhoneServiceImpl extends ServiceImpl<AddPhoneMapper, AddPhone> implements AddPhoneService {

    @Override
    public void saveAll(AddPhone addPhone) {
        addPhone.setCreateTime(new Date());
        this.baseMapper.insert(addPhone);
    }
}
